package com.everest.tribalapp;

import java.net.URLEncoder;
import java.util.ArrayList;

import org.json.JSONObject;



import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.os.Handler;
import android.os.Handler.Callback;
import android.os.IBinder;
import android.widget.Toast;

public class Myservices1 extends Service
{
private Handler handler;
private Callback callback;
private Context context;

private String f1_5;
private String f1_6;
private String f1_7;
private String f2_1;
private String f2_2;
private String f2_3;
private String f2_4;
private String f2_5;
private String f2_6a;
private String f2_6b;
private String f3_1a;
private String f3_1b;
private String f3_2a1a;
private String f3_2a1a1;
private String f3_2a1a2;
private String f3_2a1a3;
private String f3_2a1a4;
private String f3_2a1b;
private String f3_2a1b1;
private String f3_2a1b2;
private String f3_2a1b3;
private String f3_2a1b4;
private String f3_2a2a1;
private String f3_2a2a2;
private String f3_2a2a3;
private String f3_2a2a4;
private String f3_2a2b1;
private String f3_2a2b2;
private String f3_2a2b3;
private String f3_2a2b4;
private String f3_2a31;
private String f3_2a33;
private String f3_2a32;
private String f3_2a34;
private String f3_2a41;
private String f3_2a43;
private String f3_2a44;
private String f3_2a42;
private String f3_2a51;
private String f3_2a53;
private String f3_2a52;
private String f3_2a54;
private String f3_2a62;
private String f3_2a61;
private String f3_2a63;
private String f3_2a71;
private String f3_2a64;
private String f3_2a72;
private String f3_2a73;
private String f3_2a74;
private String f3_2a81;
private String f3_2a82;
private String f3_2a84;
private String f3_2a91;
private String f3_2a83;
private String f3_2a92;
private String f3_2a93;
private String f3_2a94;
private String f3_2b1a2;
private String f3_2b1a1;
private String f3_2b1a3;
private String f3_2b1a4;
private String f3_2b1b1;
private String f3_2b1b2;
private String f3_2b1b3;
private String f3_2b21;
private String f3_2b1b4;
private String f3_2b22;
private String f3_2b23;
private String f3_2b24;
private String f3_2b31;
private String f3_2b32;
private String f3_2b33;
private String f3_2b34;
private String f3_2b41;
private String f3_2b42;
private String f3_2b43;
private String f3_2b44;
private String f3_2b51;
private String f3_2b52;
private String f3_2b53;
private String f3_2b54;
private String f3_2b61;
private String f3_2b62;
private String f3_2b63;
private String f3_2b64;
private String f3_3;
private String f3_4;
private String f3_5a;
private String f3_5b;
private String f3_5c;
private String f3_5d;
private String f4_1;
private String f4_2a;
private String f4_2b;
private String f4_3;
private String f4_4;
private String f4_5;
private String f4_6;
private String f4_7;
private String f4_8;
private String f4_9;
private String f4_14;
private String f4_16;
private String f5_1;
private String f5_2;
private String f5_3;
private String f5_4;
private String f5_6;
private String f5_8;
private String f5_10;
private String f5_11;
private String f5_12;
private String f6_1a;
private String f6_1b;
private String f6_2a;
private String f6_2b;
private String f6_3a;
private String f6_3b;
private String f6_4a;
private String f6_4b;
private String f6_5;
private String f6_6;
private String f6_7a1;
private String f6_7a2;
private String f6_7a3;
private String f6_7b1;
private String f6_7b2;
private String f6_7b3;
private String f6_7c1;
private String f6_7c2;
private String f6_7c3;
private String f6_91a1;
private String f6_8;
private String f6_91a2;
private String f6_91a3;
private String f6_91b1;
private String f6_91b2;
private String f6_91b3;
private String f6_91c1;
private String f6_91c2;
private String f6_921;
private String f6_91c3;
private String f6_923;
private String f6_922;
private String f6_931;
private String f6_932;
private String f6_933;
private String f7_1;
private String f4_10a;
private String f4_10b;
private String f4_11a;
private String f4_11b;
private String f4_11c;
private String f4_11d;
private String f4_12a;
private String f4_12b;
private String f4_12c;
private String f4_12d;
private String f4_13a;
private String f4_13b;
private String f4_13c;
private String f4_13d;
private String f4_13e;
private String f4_13f;
private String f4_13g;
private String f4_13h;
private String f4_13i;
private String f4_13j;
private String f4_15a;
private String f4_15b;
private String f4_15c;
private String f4_15d;
private String f4_15e;
private String f4_15f;
private String f4_15g;
private String f4_15h;
private String f4_15i;
private String f4_15j;
private String f5_5a;
private String f5_5b;
private String f5_5c;
private String f5_5d;
private String f5_7a;
private String f5_7b;
private String f5_9a;
private String f5_9b;
private String f5_9c;
private String f5_9d;
private String f5_13a;
private String f5_13b;
private String f5_13c;
private String f5_13d;
private String f5_13e;
private String f5_13f;
private String f5_13g;
private String f7_2a;
private String f7_2b;
private String f7_3a;
private String f7_3b;
private String f7_3c;
private String f7_3d;
private String f7_3e;
private String f7_3f;
private String f8_1;
private String f8_2;
private String f8_3;
private String f8_4;
private String f8_5;
private String f8_6;
private String f8_7;
private String f8_8;
protected ArrayList<String> stringArrayList1;
protected String[] dering_array;
protected int iii=0;
protected SQLiteAdapter_Dering dering;
	@Override
	public IBinder onBind(Intent intent) 
	{
		// TODO Auto-generated method stub
		return null;
	}
	
	 @Override
     public void onCreate()
	 {
           super.onCreate();
           handler=new Handler(callback);
           handler.postDelayed(r, 0);
     }
     
     @Override
     public void onDestroy() 
     {
           super.onDestroy();
          
     }

     public Runnable r=new Runnable()
     {
		

		@Override
		public void run() 
		{
			boolean answer;
	        answer=isOnline();
	        System.out.println(answer);
	        
	        if(answer)
	        {
	        	  System.out.println("on");
	        	  stopSelf();
	        	  dering=new SQLiteAdapter_Dering(getApplicationContext());
	          	dering.openToWrite();
	          	stringArrayList1 = new ArrayList<String>();
	          	Cursor cur=dering.queue();
	          	System.out.println("COUNT ====>"+cur.getCount()+"  *** "+cur.getColumnCount());
	          	while(cur.moveToNext())
	          	{
	          		for(int i=0;i<cur.getColumnCount();i++)
	          		{
	          			System.out.println("value ===>"+cur.getString(i)+""+cur.getColumnCount());
	          			stringArrayList1.add(cur.getString(i));
	          		}
	          	}
	          	cur.close();
	          	dering.close();
	          	
	          	 dering_array = stringArrayList1.toArray(new String[stringArrayList1.size()]);
	          	 if(dering_array.length>0)
	          	 {
	          		 
	          		f1_5=dering_array[5];
	          		f1_6=dering_array[6];
	          		f1_7=dering_array[7];
	          		f2_1=dering_array[8];
	          		f2_2=dering_array[9];
	          		f2_3=dering_array[10];
	          		f2_4=dering_array[11];
	          		f2_5=dering_array[12];
	          		f2_6a=dering_array[13];
	          		f2_6b=dering_array[14];
	          		f3_1a=dering_array[15];
	          		f3_1b=dering_array[16];
	          		f3_2a1a=dering_array[17];
	          		f3_2a1a1=dering_array[18];
	          		f3_2a1a2=dering_array[19];
	          		f3_2a1a3=dering_array[20];
	          		f3_2a1a4=dering_array[21];
	          		f3_2a1b=dering_array[22];
	          		f3_2a1b1=dering_array[23];
	          		f3_2a1b2=dering_array[24];
	          		f3_2a1b3=dering_array[25];
	          		f3_2a1b4=dering_array[26];
	          		f3_2a2a1=dering_array[27];
	          		f3_2a2a2=dering_array[28];
	          		f3_2a2a3=dering_array[29];
	          		f3_2a2a4=dering_array[30];
	          		f3_2a2b1=dering_array[31];
	          		f3_2a2b2=dering_array[32];
	          		f3_2a2b3=dering_array[33];
	          		f3_2a2b4=dering_array[34];
	          		f3_2a31=dering_array[35];
	          		f3_2a33=dering_array[36];
	          		f3_2a32=dering_array[37];
	          		f3_2a34=dering_array[38];
	          		f3_2a41=dering_array[39];
	          		f3_2a43=dering_array[40];
	          		f3_2a44=dering_array[41];
	          		f3_2a42=dering_array[42];
	          		f3_2a51=dering_array[43];
	          		f3_2a53=dering_array[44];
	          		f3_2a52=dering_array[45];
	          		f3_2a54=dering_array[46];
	          		f3_2a62=dering_array[47];
	          		f3_2a61=dering_array[48];
	          		f3_2a63=dering_array[49];
	          		f3_2a71=dering_array[50];
	          		f3_2a64=dering_array[51];
	          		f3_2a72=dering_array[52];
	          		f3_2a73=dering_array[53];
	          		f3_2a74=dering_array[54];
	          		f3_2a81=dering_array[55];
	          		f3_2a82=dering_array[56];
	          		f3_2a84=dering_array[57];
	          		f3_2a91=dering_array[58];
	          		f3_2a83=dering_array[59];
	          		f3_2a92=dering_array[60];
	          		f3_2a93=dering_array[61];
	          		f3_2a94=dering_array[62];
	          		f3_2b1a2=dering_array[63];
	          		f3_2b1a1=dering_array[64];
	          		f3_2b1a3=dering_array[65];
	          		f3_2b1a4=dering_array[66];
	          		f3_2b1b1=dering_array[67];
	          		f3_2b1b2=dering_array[68];
	          		f3_2b1b3=dering_array[69];
	          		f3_2b21=dering_array[70];
	          		f3_2b1b4=dering_array[71];
	          		f3_2b22=dering_array[72];
	          		f3_2b23=dering_array[73];
	          		f3_2b24=dering_array[74];
	          		f3_2b31=dering_array[75];
	          		f3_2b32=dering_array[76];
	          		f3_2b33=dering_array[77];
	          		f3_2b34=dering_array[78];
	          		f3_2b41=dering_array[79];
	          		f3_2b42=dering_array[80];
	          		f3_2b43=dering_array[81];
	          		f3_2b44=dering_array[82];
	          		f3_2b51=dering_array[83];
	          		f3_2b52=dering_array[84];
	          		f3_2b53=dering_array[85];
	          		f3_2b54=dering_array[86];
	          		f3_2b61=dering_array[87];
	          		f3_2b62=dering_array[88];
	          		f3_2b63=dering_array[89];
	          		f3_2b64=dering_array[90];
	          		f3_3=dering_array[91];
	          		f3_4=dering_array[92];
	          		f3_5a=dering_array[93];
	          		f3_5b=dering_array[94];
	          		f3_5c=dering_array[95];
	          		f3_5d=dering_array[96];
	          		f4_1=dering_array[97];
	          		f4_2a=dering_array[98];
	          		f4_2b=dering_array[99];
	          		f4_3=dering_array[100];
	          		f4_4=dering_array[101];
	          		f4_5=dering_array[102];
	          		f4_6=dering_array[103];
	          		f4_7=dering_array[104];
	          		f4_8=dering_array[105];
	          		f4_9=dering_array[106];
	          		f4_14=dering_array[107];
	          		f4_16=dering_array[108];
	          		f5_1=dering_array[109];
	          		f5_2=dering_array[110];
	          		f5_3=dering_array[111];
	          		f5_4=dering_array[112];
	          		f5_6=dering_array[113];
	          		f5_8=dering_array[114];
	          		f5_10=dering_array[115];
	          		f5_11=dering_array[116];
	          		f5_12=dering_array[117];
	          		f6_1a=dering_array[118];
	          		f6_1b=dering_array[119];
	          		f6_2a=dering_array[120];
	          		f6_2b=dering_array[121];
	          		f6_3a=dering_array[122];
	          		f6_3b=dering_array[123];
	          		f6_4a=dering_array[124];
	          		f6_4b=dering_array[125];
	          		f6_5=dering_array[126];
	          		f6_6=dering_array[127];
	          		f6_7a1=dering_array[128];
	          		f6_7a2=dering_array[129];
	          		f6_7a3=dering_array[130];
	          		f6_7b1=dering_array[131];
	          		f6_7b2=dering_array[132];
	          		f6_7b3=dering_array[133];
	          		f6_7c1=dering_array[134];
	          		f6_7c2=dering_array[135];
	          		f6_7c3=dering_array[136];
	          		f6_91a1=dering_array[137];
	          		f6_8=dering_array[138];
	          		f6_91a2=dering_array[139];
	          		f6_91a3=dering_array[140];
	          		f6_91b1=dering_array[141];
	          		f6_91b2=dering_array[142];
	          		f6_91b3=dering_array[143];
	          		f6_91c1=dering_array[144];
	          		f6_91c2=dering_array[145];
	          		f6_921=dering_array[146];
	          		f6_91c3=dering_array[147];
	          		f6_923=dering_array[148];
	          		f6_922=dering_array[149];
	          		f6_931=dering_array[150];
	          		f6_932=dering_array[151];
	          		f6_933=dering_array[152];
	          		f7_1=dering_array[153];
	          		f4_10a=dering_array[154];
	          		f4_10b=dering_array[155];
	          		f4_11a=dering_array[156];
	          		f4_11b=dering_array[157];
	          		f4_11c=dering_array[158];
	          		f4_11d=dering_array[159];
	          		f4_12a=dering_array[160];
	          		f4_12b=dering_array[161];
	          		f4_12c=dering_array[162];
	          		f4_12d=dering_array[163];
	          		f4_13a=dering_array[164];
	          		f4_13b=dering_array[165];
	          		f4_13c=dering_array[166];
	          		f4_13d=dering_array[167];
	          		f4_13e=dering_array[168];
	          		f4_13f=dering_array[169];
	          		f4_13g=dering_array[170];
	          		f4_13h=dering_array[171];
	          		f4_13i=dering_array[172];
	          		f4_13j=dering_array[173];
	          		f4_15a=dering_array[174];
	          		f4_15b=dering_array[175];
	          		f4_15c=dering_array[176];
	          		f4_15d=dering_array[177];
	          		f4_15e=dering_array[178];
	          		f4_15f=dering_array[179];
	          		f4_15g=dering_array[180];
	          		f4_15h=dering_array[181];
	          		f4_15i=dering_array[182];
	          		f4_15j=dering_array[183];
	          		f5_5a=dering_array[184];
	          		f5_5b=dering_array[185];
	          		f5_5c=dering_array[186];
	          		f5_5d=dering_array[187];
	          		f5_7a=dering_array[188];
	          		f5_7b=dering_array[189];
	          		f5_9a=dering_array[190];
	          		f5_9b=dering_array[191];
	          		f5_9c=dering_array[192];
	          		f5_9d=dering_array[193];
	          		f5_13a=dering_array[194];
	          		f5_13b=dering_array[195];
	          		f5_13c=dering_array[196];
	          		f5_13d=dering_array[197];
	          		f5_13e=dering_array[198];
	          		f5_13f=dering_array[199];
	          		f5_13g=dering_array[200];
	          		f7_2a=dering_array[201];
	          		f7_2b=dering_array[202];
	          		f7_3a=dering_array[203];
	          		f7_3b=dering_array[204];
	          		f7_3c=dering_array[205];
	          		f7_3d=dering_array[206];
	          		f7_3e=dering_array[207];
	          		f7_3f=dering_array[208];
	          		f8_1=dering_array[209];
	          		f8_2=dering_array[210];
	          		f8_3=dering_array[211];
	          		f8_4=dering_array[212];
	          		f8_5=dering_array[213];
	          		f8_6=dering_array[214];
	          		f8_7=dering_array[215];
	          		f8_8=dering_array[216];
	          		dering_year=dering_array[217];
	          		 try
	          		 {
	          			 
	          			f1_5=URLEncoder.encode(f1_5,"UTF-8");
	          			f1_6=URLEncoder.encode(f1_6,"UTF-8");
	          			f1_7=URLEncoder.encode(f1_7,"UTF-8");
	          			f2_1=URLEncoder.encode(f2_1,"UTF-8");
	          			f2_2=URLEncoder.encode(f2_2,"UTF-8");
	          			f2_3=URLEncoder.encode(f2_3,"UTF-8");
	          			f2_4=URLEncoder.encode(f2_4,"UTF-8");
	          			f2_5=URLEncoder.encode(f2_5,"UTF-8");
	          			f2_6a=URLEncoder.encode(f2_6a,"UTF-8");
	          			f2_6b=URLEncoder.encode(f2_6b,"UTF-8");
	          			f3_1a=URLEncoder.encode(f3_1a,"UTF-8");
	          			f3_1b=URLEncoder.encode(f3_1b,"UTF-8");
	          			f3_2a1a=URLEncoder.encode(f3_2a1a,"UTF-8");
	          			f3_2a1a1=URLEncoder.encode(f3_2a1a1,"UTF-8");
	          			f3_2a1a2=URLEncoder.encode(f3_2a1a2,"UTF-8");
	          			f3_2a1a3=URLEncoder.encode(f3_2a1a3,"UTF-8");
	          			f3_2a1a4=URLEncoder.encode(f3_2a1a4,"UTF-8");
	          			f3_2a1b=URLEncoder.encode(f3_2a1b,"UTF-8");
	          			f3_2a1b1=URLEncoder.encode(f3_2a1b1,"UTF-8");
	          			f3_2a1b2=URLEncoder.encode(f3_2a1b2,"UTF-8");
	          			f3_2a1b3=URLEncoder.encode(f3_2a1b3,"UTF-8");
	          			f3_2a1b4=URLEncoder.encode(f3_2a1b4,"UTF-8");
	          			f3_2a2a1=URLEncoder.encode(f3_2a2a1,"UTF-8");
	          			f3_2a2a2=URLEncoder.encode(f3_2a2a2,"UTF-8");
	          			f3_2a2a3=URLEncoder.encode(f3_2a2a3,"UTF-8");
	          			f3_2a2a4=URLEncoder.encode(f3_2a2a4,"UTF-8");
	          			f3_2a2b1=URLEncoder.encode(f3_2a2b1,"UTF-8");
	          			f3_2a2b2=URLEncoder.encode(f3_2a2b2,"UTF-8");
	          			f3_2a2b3=URLEncoder.encode(f3_2a2b3,"UTF-8");
	          			f3_2a2b4=URLEncoder.encode(f3_2a2b4,"UTF-8");
	          			f3_2a31=URLEncoder.encode(f3_2a31,"UTF-8");
	          			f3_2a32=URLEncoder.encode(f3_2a32,"UTF-8");
	          			f3_2a33=URLEncoder.encode(f3_2a33,"UTF-8");
	          			f3_2a34=URLEncoder.encode(f3_2a34,"UTF-8");
	          			f3_2a41=URLEncoder.encode(f3_2a41,"UTF-8");
	          			f3_2a42=URLEncoder.encode(f3_2a42,"UTF-8");
	          			f3_2a43=URLEncoder.encode(f3_2a43,"UTF-8");
	          			f3_2a44=URLEncoder.encode(f3_2a44,"UTF-8");
	          			f3_2a51=URLEncoder.encode(f3_2a51,"UTF-8");
	          			f3_2a52=URLEncoder.encode(f3_2a52,"UTF-8");
	          			f3_2a53=URLEncoder.encode(f3_2a53,"UTF-8");
	          			f3_2a54=URLEncoder.encode(f3_2a54,"UTF-8");
	          			f3_2a61=URLEncoder.encode(f3_2a61,"UTF-8");
	          			f3_2a62=URLEncoder.encode(f3_2a62,"UTF-8");
	          			f3_2a63=URLEncoder.encode(f3_2a63,"UTF-8");
	          			f3_2a64=URLEncoder.encode(f3_2a64,"UTF-8");
	          			f3_2a71=URLEncoder.encode(f3_2a71,"UTF-8");
	          			f3_2a72=URLEncoder.encode(f3_2a72,"UTF-8");
	          			f3_2a73=URLEncoder.encode(f3_2a73,"UTF-8");
	          			f3_2a74=URLEncoder.encode(f3_2a74,"UTF-8");
	          			f3_2a81=URLEncoder.encode(f3_2a81,"UTF-8");
	          			f3_2a82=URLEncoder.encode(f3_2a82,"UTF-8");
	          			f3_2a83=URLEncoder.encode(f3_2a83,"UTF-8");
	          			f3_2a84=URLEncoder.encode(f3_2a84,"UTF-8");
	          			f3_2a91=URLEncoder.encode(f3_2a91,"UTF-8");
	          			f3_2a92=URLEncoder.encode(f3_2a92,"UTF-8");
	          			f3_2a93=URLEncoder.encode(f3_2a93,"UTF-8");
	          			f3_2a94=URLEncoder.encode(f3_2a94,"UTF-8");
	          			f3_2b1a1=URLEncoder.encode(f3_2b1a1,"UTF-8");
	          			f3_2b1a2=URLEncoder.encode(f3_2b1a2,"UTF-8");
	          			f3_2b1a3=URLEncoder.encode(f3_2b1a3,"UTF-8");
	          			f3_2b1a4=URLEncoder.encode(f3_2b1a4,"UTF-8");
	          			f3_2b1b1=URLEncoder.encode(f3_2b1b1,"UTF-8");
	          			f3_2b1b2=URLEncoder.encode(f3_2b1b2,"UTF-8");
	          			f3_2b1b3=URLEncoder.encode(f3_2b1b3,"UTF-8");
	          			f3_2b1b4=URLEncoder.encode(f3_2b1b4,"UTF-8");
	          			f3_2b21=URLEncoder.encode(f3_2b21,"UTF-8");
	          			f3_2b22=URLEncoder.encode(f3_2b22,"UTF-8");
	          			f3_2b23=URLEncoder.encode(f3_2b23,"UTF-8");
	          			f3_2b24=URLEncoder.encode(f3_2b24,"UTF-8");
	          			f3_2b31=URLEncoder.encode(f3_2b31,"UTF-8");
	          			f3_2b32=URLEncoder.encode(f3_2b32,"UTF-8");
	          			f3_2b33=URLEncoder.encode(f3_2b33,"UTF-8");
	          			f3_2b34=URLEncoder.encode(f3_2b34,"UTF-8");
	          			f3_2b41=URLEncoder.encode(f3_2b41,"UTF-8");
	          			f3_2b42=URLEncoder.encode(f3_2b42,"UTF-8");
	          			f3_2b43=URLEncoder.encode(f3_2b43,"UTF-8");
	          			f3_2b44=URLEncoder.encode(f3_2b44,"UTF-8");
	          			f3_2b51=URLEncoder.encode(f3_2b51,"UTF-8");
	          			f3_2b52=URLEncoder.encode(f3_2b52,"UTF-8");
	          			f3_2b53=URLEncoder.encode(f3_2b53,"UTF-8");
	          			f3_2b54=URLEncoder.encode(f3_2b54,"UTF-8");
	          			f3_2b61=URLEncoder.encode(f3_2b61,"UTF-8");
	          			f3_2b62=URLEncoder.encode(f3_2b62,"UTF-8");
	          			f3_2b63=URLEncoder.encode(f3_2b63,"UTF-8");
	          			f3_2b64=URLEncoder.encode(f3_2b64,"UTF-8");
	          			f3_3=URLEncoder.encode(f3_3,"UTF-8");
	          			f3_4=URLEncoder.encode(f3_4,"UTF-8");
	          			f3_5a=URLEncoder.encode(f3_5a,"UTF-8");
	          			f3_5b=URLEncoder.encode(f3_5b,"UTF-8");
	          			f3_5c=URLEncoder.encode(f3_5c,"UTF-8");
	          			f3_5d=URLEncoder.encode(f3_5d,"UTF-8");
	          			f7_1=URLEncoder.encode(f7_1,"UTF-8");
	          		 }
	          		 catch(Exception e)
	          		 {
	          			 
	          		 }
	          		 new Check().execute();
	          	 }
	          	 else
	          	 {
	          		 handler=new Handler(callback);
		             handler.postDelayed(r,10000); 
	          	 }
	          	
	        	  
	        }
	        else
	        {
	        	System.out.println("off");
	        	 handler=new Handler(callback);
	             handler.postDelayed(r,10000);
	        }
		}
	};
	public String dering_year;
	
	public boolean isOnline() {
        ConnectivityManager cm =
            (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
        NetworkInfo netInfo = cm.getActiveNetworkInfo();
        if (netInfo != null && netInfo.isConnected()) {
            return true;
        }
        return false;
    }
	

	class Check extends AsyncTask
	{

		
		private String json;
		private JSONObject jsonobject;
		private String code;
		private String msg;
		private String url;
		@Override
		protected void onPreExecute() 
		{
			super.onPreExecute();
			if(dering_year.equalsIgnoreCase("2010"))
			{
				url=Global.dering_2010_url+"none&f1_2=none&f1_3=none&f1_4=none&f1_5="+f1_5+"&f1_6="+f1_6+"&f1_7="+f1_7+"&f2_1="+f2_1+"&f2_2="+f2_2+"&f2_3="+f2_3+"&f2_4="+f2_4+"&f2_5="+f2_5+"&f2_6a="+f2_6a+"&f2_6b="+f2_6b+"&f3_1a="+f3_1a+"&f3_1b="+f3_1b+"&f3_2a1a="+f3_2a1a+"&f3_2a1a1="+f3_2a1a1+"&f3_2a1a2="+f3_2a1a2+"&f3_2a1a3="+f3_2a1a3+"&f3_2a1a4="+f3_2a1a4+"&f3_2a1b="+f3_2a1b+"&f3_2a1b1="+f3_2a1b1+"&f3_2a1b2="+f3_2a1b2+"&f3_2a1b3="+f3_2a1b3+"&f3_2a1b4="+f3_2a1b4+"&f3_2a2a1="+f3_2a2a1+"&f3_2a2a2="+f3_2a2a2+"&f3_2a2a3="+f3_2a2a3+"&f3_2a2a4="+f3_2a2a4+"&f3_2a2b1="+f3_2a2b1+"&f3_2a2b2="+f3_2a2b2+"&f3_2a2b3="+f3_2a2b3+"&f3_2a2b4="+f3_2a2b4+"&f3_2a31="+f3_2a31+"&f3_2a32="+f3_2a32+"&f3_2a33="+f3_2a33+"&f3_2a34="+f3_2a34+"&f3_2a41="+f3_2a41+"&f3_2a42="+f3_2a42+"&f3_2a43="+f3_2a43+"&f3_2a44="+f3_2a44+"&f3_2a51="+f3_2a51+"&f3_2a52="+f3_2a52+"&f3_2a53="+f3_2a53+"&f3_2a54="+f3_2a54+"&f3_2a61="+f3_2a61+"&f3_2a62="+f3_2a62+"&f3_2a63="+f3_2a63+"&f3_2a64="+f3_2a64+"&f3_2a71="+f3_2a71+"&f3_2a72="+f3_2a72+"&f3_2a73="+f3_2a73+"&f3_2a74="+f3_2a74+"&f3_2a81="+f3_2a81+"&f3_2a82="+f3_2a82+"&f3_2a83="+f3_2a83+"&f3_2a84="+f3_2a84+"&f3_2a91="+f3_2a91+"&f3_2a92="+f3_2a92+"&f3_2a93="+f3_2a93+"&f3_2a94="+f3_2a94+"&f3_2b1a1="+f3_2b1a1+"&f3_2b1a2="+f3_2b1a2+"&f3_2b1a3="+f3_2b1a3+"&f3_2b1a4="+f3_2b1a4+"&f3_2b1b1="+f3_2b1b1+"&f3_2b1b2="+f3_2b1b2+"&f3_2b1b3="+f3_2b1b3+"&f3_2b1b4="+f3_2b1b4+"&f3_2b21="+f3_2b21+"&f3_2b22="+f3_2b22+"&f3_2b23="+f3_2b23+"&f3_2b24="+f3_2b24+"&f3_2b31="+f3_2b31+"&f3_2b32="+f3_2b32+"&f3_2b33="+f3_2b33+"&f3_2b34="+f3_2b34+"&f3_2b41="+f3_2b41+"&f3_2b42="+f3_2b42+"&f3_2b43="+f3_2b43+"&f3_2b44="+f3_2b44+"&f3_2b51="+f3_2b51+"&f3_2b52="+f3_2b52+"&f3_2b53="+f3_2b53+"&f3_2b54="+f3_2b54+"&f3_2b61="+f3_2b61+"&f3_2b62="+f3_2b62+"&f3_2b63="+f3_2b63+"&f3_2b64="+f3_2b64+"&f3_3="+f3_3+"&f3_4="+f3_4+"&f3_5a="+f3_5a+"&f3_5b="+f3_5b+"&f3_5c="+f3_5c+"&f3_5d="+f3_5d+"&f4_1="+f4_1+"&f4_2a="+f4_2a+"&f4_2b="+f4_2b+"&f4_3="+f4_3+"&f4_4="+f4_4+"&f4_5="+f4_5+"&f4_6="+f4_6+"&f4_7="+f4_7+"&f4_8="+f4_8+"&f4_9="+f4_9+"&f4_10a="+f4_10a+"&f4_10b="+f4_10b+"&f4_11a="+f4_11a+"&f4_11b="+f4_11b+"&f4_11c="+f4_11c+"&f4_11d="+f4_11d+"&f4_12a="+f4_12a+"&f4_12b="+f4_12b+"&f4_12c="+f4_12c+"&f4_12d="+f4_12d+"&f4_13a="+f4_13a+"&f4_13b="+f4_13b+"&f4_13c="+f4_13c+"&f4_13d="+f4_13d+"&f4_13e="+f4_13e+"&f4_13f="+f4_13f+"&f4_13g="+f4_13g+"&f4_13h="+f4_13h+"&f4_13i="+f4_13i+"&f4_13j="+f4_13j+"&f4_14="+f4_14+"&f4_15a="+f4_15a+"&f4_15b="+f4_15b+"&f4_15c="+f4_15c+"&f4_15d="+f4_15d+"&f4_15e="+f4_15e+"&f4_15f="+f4_15f+"&f4_15g="+f4_15g+"&f4_15h="+f4_15h+"&f4_15i="+f4_15i+"&f4_15j="+f4_15j+"&f4_16="+f4_16+"&f5_1="+f5_1+"&f5_2="+f5_2+"&f5_3="+f5_3+"&f5_4="+f5_4+"&f5_5a="+f5_5a+"&f5_5b="+f5_5b+"&f5_5c="+f5_5c+"&f5_5d="+f5_5d+"&f5_6="+f5_6+"&f5_7a="+f5_7a+"&f5_7b="+f5_7b+"&f5_8="+f5_8+"&f5_9a="+f5_9a+"&f5_9b="+f5_9b+"&f5_9c="+f5_9c+"&f5_9d="+f5_9d+"&f5_10="+f5_10+"&f5_11="+f5_11+"&f5_12="+f5_12+"&f5_13a="+f5_13a+"&f5_13b="+f5_13b+"&f5_13c="+f5_13c+"&f5_13d="+f5_13d+"&f5_13e="+f5_13e+"&f5_13f="+f5_13f+"&f5_13g="+f5_13g+"&f6_1a="+f6_1a+"&f6_1b="+f6_1b+"&f6_2a="+f6_2a+"&f6_2b="+f6_2b+"&f6_3a="+f6_3a+"&f6_3b="+f6_3b+"&f6_4a="+f6_4a+"&f6_4b="+f6_4b+"&f6_5="+f6_5+"&f6_6="+f6_6+"&f6_7a1="+f6_7a1+"&f6_7a2="+f6_7a2+"&f6_7a3="+f6_7a3+"&f6_7b1="+f6_7b1+"&f6_7b2="+f6_7b2+"&f6_7b3="+f6_7b3+"&f6_7c1="+f6_7c1+"&f6_7c2="+f6_7c2+"&f6_7c3="+f6_7c3+"&f6_8="+f6_8+"&f6_91a1="+f6_91a1+"&f6_91a2="+f6_91a2+"&f6_91a3="+f6_91a3+"&f6_91b1="+f6_91b1+"&f6_91b2="+f6_91b2+"&f6_91b3="+f6_91b3+"&f6_91c1="+f6_91c1+"&f6_91c2="+f6_91c2+"&f6_91c3="+f6_91c3+"&f6_921="+f6_921+"&f6_922="+f6_922+"&f6_923="+f6_923+"&f6_931="+f6_931+"&f6_932="+f6_932+"&f6_933="+f6_933+"&f7_1="+f7_1+"&f7_2a="+f7_2a+"&f7_2b="+f7_2b+"&f7_3a="+f7_3a+"&f7_3b="+f7_3b+"&f7_3c="+f7_3c+"&f7_3d="+f7_3d+"&f7_3e="+f7_3e+"&f7_3f="+f7_3f+"&f8_1="+f8_1+"&f8_2="+f8_2+"&f8_3="+f8_3+"&f8_4="+f8_4+"&f8_5="+f8_5+"&f8_6="+f8_6+"&f8_7="+"none"+"&f8_8="+"none";
				url=url.replace("+", "%2B");
				url=url.replace(" ", "%20");
				System.out.println(url);
			}
			else if(dering_year.equalsIgnoreCase("2011"))
			{
				url=Global.dering_2011_url+"none&f1_2=none&f1_3=none&f1_4=none&f1_5="+f1_5+"&f1_6="+f1_6+"&f1_7="+f1_7+"&f2_1="+f2_1+"&f2_2="+f2_2+"&f2_3="+f2_3+"&f2_4="+f2_4+"&f2_5="+f2_5+"&f2_6a="+f2_6a+"&f2_6b="+f2_6b+"&f3_1a="+f3_1a+"&f3_1b="+f3_1b+"&f3_2a1a="+f3_2a1a+"&f3_2a1a1="+f3_2a1a1+"&f3_2a1a2="+f3_2a1a2+"&f3_2a1a3="+f3_2a1a3+"&f3_2a1a4="+f3_2a1a4+"&f3_2a1b="+f3_2a1b+"&f3_2a1b1="+f3_2a1b1+"&f3_2a1b2="+f3_2a1b2+"&f3_2a1b3="+f3_2a1b3+"&f3_2a1b4="+f3_2a1b4+"&f3_2a2a1="+f3_2a2a1+"&f3_2a2a2="+f3_2a2a2+"&f3_2a2a3="+f3_2a2a3+"&f3_2a2a4="+f3_2a2a4+"&f3_2a2b1="+f3_2a2b1+"&f3_2a2b2="+f3_2a2b2+"&f3_2a2b3="+f3_2a2b3+"&f3_2a2b4="+f3_2a2b4+"&f3_2a31="+f3_2a31+"&f3_2a32="+f3_2a32+"&f3_2a33="+f3_2a33+"&f3_2a34="+f3_2a34+"&f3_2a41="+f3_2a41+"&f3_2a42="+f3_2a42+"&f3_2a43="+f3_2a43+"&f3_2a44="+f3_2a44+"&f3_2a51="+f3_2a51+"&f3_2a52="+f3_2a52+"&f3_2a53="+f3_2a53+"&f3_2a54="+f3_2a54+"&f3_2a61="+f3_2a61+"&f3_2a62="+f3_2a62+"&f3_2a63="+f3_2a63+"&f3_2a64="+f3_2a64+"&f3_2a71="+f3_2a71+"&f3_2a72="+f3_2a72+"&f3_2a73="+f3_2a73+"&f3_2a74="+f3_2a74+"&f3_2a81="+f3_2a81+"&f3_2a82="+f3_2a82+"&f3_2a83="+f3_2a83+"&f3_2a84="+f3_2a84+"&f3_2a91="+f3_2a91+"&f3_2a92="+f3_2a92+"&f3_2a93="+f3_2a93+"&f3_2a94="+f3_2a94+"&f3_2b1a1="+f3_2b1a1+"&f3_2b1a2="+f3_2b1a2+"&f3_2b1a3="+f3_2b1a3+"&f3_2b1a4="+f3_2b1a4+"&f3_2b1b1="+f3_2b1b1+"&f3_2b1b2="+f3_2b1b2+"&f3_2b1b3="+f3_2b1b3+"&f3_2b1b4="+f3_2b1b4+"&f3_2b21="+f3_2b21+"&f3_2b22="+f3_2b22+"&f3_2b23="+f3_2b23+"&f3_2b24="+f3_2b24+"&f3_2b31="+f3_2b31+"&f3_2b32="+f3_2b32+"&f3_2b33="+f3_2b33+"&f3_2b34="+f3_2b34+"&f3_2b41="+f3_2b41+"&f3_2b42="+f3_2b42+"&f3_2b43="+f3_2b43+"&f3_2b44="+f3_2b44+"&f3_2b51="+f3_2b51+"&f3_2b52="+f3_2b52+"&f3_2b53="+f3_2b53+"&f3_2b54="+f3_2b54+"&f3_2b61="+f3_2b61+"&f3_2b62="+f3_2b62+"&f3_2b63="+f3_2b63+"&f3_2b64="+f3_2b64+"&f3_3="+f3_3+"&f3_4="+f3_4+"&f3_5a="+f3_5a+"&f3_5b="+f3_5b+"&f3_5c="+f3_5c+"&f3_5d="+f3_5d+"&f4_1="+f4_1+"&f4_2a="+f4_2a+"&f4_2b="+f4_2b+"&f4_3="+f4_3+"&f4_4="+f4_4+"&f4_5="+f4_5+"&f4_6="+f4_6+"&f4_7="+f4_7+"&f4_8="+f4_8+"&f4_9="+f4_9+"&f4_10a="+f4_10a+"&f4_10b="+f4_10b+"&f4_11a="+f4_11a+"&f4_11b="+f4_11b+"&f4_11c="+f4_11c+"&f4_11d="+f4_11d+"&f4_12a="+f4_12a+"&f4_12b="+f4_12b+"&f4_12c="+f4_12c+"&f4_12d="+f4_12d+"&f4_13a="+f4_13a+"&f4_13b="+f4_13b+"&f4_13c="+f4_13c+"&f4_13d="+f4_13d+"&f4_13e="+f4_13e+"&f4_13f="+f4_13f+"&f4_13g="+f4_13g+"&f4_13h="+f4_13h+"&f4_13i="+f4_13i+"&f4_13j="+f4_13j+"&f4_14="+f4_14+"&f4_15a="+f4_15a+"&f4_15b="+f4_15b+"&f4_15c="+f4_15c+"&f4_15d="+f4_15d+"&f4_15e="+f4_15e+"&f4_15f="+f4_15f+"&f4_15g="+f4_15g+"&f4_15h="+f4_15h+"&f4_15i="+f4_15i+"&f4_15j="+f4_15j+"&f4_16="+f4_16+"&f5_1="+f5_1+"&f5_2="+f5_2+"&f5_3="+f5_3+"&f5_4="+f5_4+"&f5_5a="+f5_5a+"&f5_5b="+f5_5b+"&f5_5c="+f5_5c+"&f5_5d="+f5_5d+"&f5_6="+f5_6+"&f5_7a="+f5_7a+"&f5_7b="+f5_7b+"&f5_8="+f5_8+"&f5_9a="+f5_9a+"&f5_9b="+f5_9b+"&f5_9c="+f5_9c+"&f5_9d="+f5_9d+"&f5_10="+f5_10+"&f5_11="+f5_11+"&f5_12="+f5_12+"&f5_13a="+f5_13a+"&f5_13b="+f5_13b+"&f5_13c="+f5_13c+"&f5_13d="+f5_13d+"&f5_13e="+f5_13e+"&f5_13f="+f5_13f+"&f5_13g="+f5_13g+"&f6_1a="+f6_1a+"&f6_1b="+f6_1b+"&f6_2a="+f6_2a+"&f6_2b="+f6_2b+"&f6_3a="+f6_3a+"&f6_3b="+f6_3b+"&f6_4a="+f6_4a+"&f6_4b="+f6_4b+"&f6_5="+f6_5+"&f6_6="+f6_6+"&f6_7a1="+f6_7a1+"&f6_7a2="+f6_7a2+"&f6_7a3="+f6_7a3+"&f6_7b1="+f6_7b1+"&f6_7b2="+f6_7b2+"&f6_7b3="+f6_7b3+"&f6_7c1="+f6_7c1+"&f6_7c2="+f6_7c2+"&f6_7c3="+f6_7c3+"&f6_8="+f6_8+"&f6_91a1="+f6_91a1+"&f6_91a2="+f6_91a2+"&f6_91a3="+f6_91a3+"&f6_91b1="+f6_91b1+"&f6_91b2="+f6_91b2+"&f6_91b3="+f6_91b3+"&f6_91c1="+f6_91c1+"&f6_91c2="+f6_91c2+"&f6_91c3="+f6_91c3+"&f6_921="+f6_921+"&f6_922="+f6_922+"&f6_923="+f6_923+"&f6_931="+f6_931+"&f6_932="+f6_932+"&f6_933="+f6_933+"&f7_1="+f7_1+"&f7_2a="+f7_2a+"&f7_2b="+f7_2b+"&f7_3a="+f7_3a+"&f7_3b="+f7_3b+"&f7_3c="+f7_3c+"&f7_3d="+f7_3d+"&f7_3e="+f7_3e+"&f7_3f="+f7_3f+"&f8_1="+f8_1+"&f8_2="+f8_2+"&f8_3="+f8_3+"&f8_4="+f8_4+"&f8_5="+f8_5+"&f8_6="+f8_6+"&f8_7="+"none"+"&f8_8="+"none";
				url=url.replace("+", "%2B");
				url=url.replace(" ", "%20");
				System.out.println(url);
			}
			else if(dering_year.equalsIgnoreCase("2012"))
			{
				url=Global.dering_2012_url+"none&f1_2=none&f1_3=none&f1_4=none&f1_5="+f1_5+"&f1_6="+f1_6+"&f1_7="+f1_7+"&f2_1="+f2_1+"&f2_2="+f2_2+"&f2_3="+f2_3+"&f2_4="+f2_4+"&f2_5="+f2_5+"&f2_6a="+f2_6a+"&f2_6b="+f2_6b+"&f3_1a="+f3_1a+"&f3_1b="+f3_1b+"&f3_2a1a="+f3_2a1a+"&f3_2a1a1="+f3_2a1a1+"&f3_2a1a2="+f3_2a1a2+"&f3_2a1a3="+f3_2a1a3+"&f3_2a1a4="+f3_2a1a4+"&f3_2a1b="+f3_2a1b+"&f3_2a1b1="+f3_2a1b1+"&f3_2a1b2="+f3_2a1b2+"&f3_2a1b3="+f3_2a1b3+"&f3_2a1b4="+f3_2a1b4+"&f3_2a2a1="+f3_2a2a1+"&f3_2a2a2="+f3_2a2a2+"&f3_2a2a3="+f3_2a2a3+"&f3_2a2a4="+f3_2a2a4+"&f3_2a2b1="+f3_2a2b1+"&f3_2a2b2="+f3_2a2b2+"&f3_2a2b3="+f3_2a2b3+"&f3_2a2b4="+f3_2a2b4+"&f3_2a31="+f3_2a31+"&f3_2a32="+f3_2a32+"&f3_2a33="+f3_2a33+"&f3_2a34="+f3_2a34+"&f3_2a41="+f3_2a41+"&f3_2a42="+f3_2a42+"&f3_2a43="+f3_2a43+"&f3_2a44="+f3_2a44+"&f3_2a51="+f3_2a51+"&f3_2a52="+f3_2a52+"&f3_2a53="+f3_2a53+"&f3_2a54="+f3_2a54+"&f3_2a61="+f3_2a61+"&f3_2a62="+f3_2a62+"&f3_2a63="+f3_2a63+"&f3_2a64="+f3_2a64+"&f3_2a71="+f3_2a71+"&f3_2a72="+f3_2a72+"&f3_2a73="+f3_2a73+"&f3_2a74="+f3_2a74+"&f3_2a81="+f3_2a81+"&f3_2a82="+f3_2a82+"&f3_2a83="+f3_2a83+"&f3_2a84="+f3_2a84+"&f3_2a91="+f3_2a91+"&f3_2a92="+f3_2a92+"&f3_2a93="+f3_2a93+"&f3_2a94="+f3_2a94+"&f3_2b1a1="+f3_2b1a1+"&f3_2b1a2="+f3_2b1a2+"&f3_2b1a3="+f3_2b1a3+"&f3_2b1a4="+f3_2b1a4+"&f3_2b1b1="+f3_2b1b1+"&f3_2b1b2="+f3_2b1b2+"&f3_2b1b3="+f3_2b1b3+"&f3_2b1b4="+f3_2b1b4+"&f3_2b21="+f3_2b21+"&f3_2b22="+f3_2b22+"&f3_2b23="+f3_2b23+"&f3_2b24="+f3_2b24+"&f3_2b31="+f3_2b31+"&f3_2b32="+f3_2b32+"&f3_2b33="+f3_2b33+"&f3_2b34="+f3_2b34+"&f3_2b41="+f3_2b41+"&f3_2b42="+f3_2b42+"&f3_2b43="+f3_2b43+"&f3_2b44="+f3_2b44+"&f3_2b51="+f3_2b51+"&f3_2b52="+f3_2b52+"&f3_2b53="+f3_2b53+"&f3_2b54="+f3_2b54+"&f3_2b61="+f3_2b61+"&f3_2b62="+f3_2b62+"&f3_2b63="+f3_2b63+"&f3_2b64="+f3_2b64+"&f3_3="+f3_3+"&f3_4="+f3_4+"&f3_5a="+f3_5a+"&f3_5b="+f3_5b+"&f3_5c="+f3_5c+"&f3_5d="+f3_5d+"&f4_1="+f4_1+"&f4_2a="+f4_2a+"&f4_2b="+f4_2b+"&f4_3="+f4_3+"&f4_4="+f4_4+"&f4_5="+f4_5+"&f4_6="+f4_6+"&f4_7="+f4_7+"&f4_8="+f4_8+"&f4_9="+f4_9+"&f4_10a="+f4_10a+"&f4_10b="+f4_10b+"&f4_11a="+f4_11a+"&f4_11b="+f4_11b+"&f4_11c="+f4_11c+"&f4_11d="+f4_11d+"&f4_12a="+f4_12a+"&f4_12b="+f4_12b+"&f4_12c="+f4_12c+"&f4_12d="+f4_12d+"&f4_13a="+f4_13a+"&f4_13b="+f4_13b+"&f4_13c="+f4_13c+"&f4_13d="+f4_13d+"&f4_13e="+f4_13e+"&f4_13f="+f4_13f+"&f4_13g="+f4_13g+"&f4_13h="+f4_13h+"&f4_13i="+f4_13i+"&f4_13j="+f4_13j+"&f4_14="+f4_14+"&f4_15a="+f4_15a+"&f4_15b="+f4_15b+"&f4_15c="+f4_15c+"&f4_15d="+f4_15d+"&f4_15e="+f4_15e+"&f4_15f="+f4_15f+"&f4_15g="+f4_15g+"&f4_15h="+f4_15h+"&f4_15i="+f4_15i+"&f4_15j="+f4_15j+"&f4_16="+f4_16+"&f5_1="+f5_1+"&f5_2="+f5_2+"&f5_3="+f5_3+"&f5_4="+f5_4+"&f5_5a="+f5_5a+"&f5_5b="+f5_5b+"&f5_5c="+f5_5c+"&f5_5d="+f5_5d+"&f5_6="+f5_6+"&f5_7a="+f5_7a+"&f5_7b="+f5_7b+"&f5_8="+f5_8+"&f5_9a="+f5_9a+"&f5_9b="+f5_9b+"&f5_9c="+f5_9c+"&f5_9d="+f5_9d+"&f5_10="+f5_10+"&f5_11="+f5_11+"&f5_12="+f5_12+"&f5_13a="+f5_13a+"&f5_13b="+f5_13b+"&f5_13c="+f5_13c+"&f5_13d="+f5_13d+"&f5_13e="+f5_13e+"&f5_13f="+f5_13f+"&f5_13g="+f5_13g+"&f6_1a="+f6_1a+"&f6_1b="+f6_1b+"&f6_2a="+f6_2a+"&f6_2b="+f6_2b+"&f6_3a="+f6_3a+"&f6_3b="+f6_3b+"&f6_4a="+f6_4a+"&f6_4b="+f6_4b+"&f6_5="+f6_5+"&f6_6="+f6_6+"&f6_7a1="+f6_7a1+"&f6_7a2="+f6_7a2+"&f6_7a3="+f6_7a3+"&f6_7b1="+f6_7b1+"&f6_7b2="+f6_7b2+"&f6_7b3="+f6_7b3+"&f6_7c1="+f6_7c1+"&f6_7c2="+f6_7c2+"&f6_7c3="+f6_7c3+"&f6_8="+f6_8+"&f6_91a1="+f6_91a1+"&f6_91a2="+f6_91a2+"&f6_91a3="+f6_91a3+"&f6_91b1="+f6_91b1+"&f6_91b2="+f6_91b2+"&f6_91b3="+f6_91b3+"&f6_91c1="+f6_91c1+"&f6_91c2="+f6_91c2+"&f6_91c3="+f6_91c3+"&f6_921="+f6_921+"&f6_922="+f6_922+"&f6_923="+f6_923+"&f6_931="+f6_931+"&f6_932="+f6_932+"&f6_933="+f6_933+"&f7_1="+f7_1+"&f7_2a="+f7_2a+"&f7_2b="+f7_2b+"&f7_3a="+f7_3a+"&f7_3b="+f7_3b+"&f7_3c="+f7_3c+"&f7_3d="+f7_3d+"&f7_3e="+f7_3e+"&f7_3f="+f7_3f+"&f8_1="+f8_1+"&f8_2="+f8_2+"&f8_3="+f8_3+"&f8_4="+f8_4+"&f8_5="+f8_5+"&f8_6="+f8_6+"&f8_7="+"none"+"&f8_8="+"none";
				url=url.replace("+", "%2B");
				url=url.replace(" ", "%20");
				System.out.println(url);
			}
			else if(dering_year.equalsIgnoreCase("2013"))
			{
				url=Global.dering_2013_url+"none&f1_2=none&f1_3=none&f1_4=none&f1_5="+f1_5+"&f1_6="+f1_6+"&f1_7="+f1_7+"&f2_1="+f2_1+"&f2_2="+f2_2+"&f2_3="+f2_3+"&f2_4="+f2_4+"&f2_5="+f2_5+"&f2_6a="+f2_6a+"&f2_6b="+f2_6b+"&f3_1a="+f3_1a+"&f3_1b="+f3_1b+"&f3_2a1a="+f3_2a1a+"&f3_2a1a1="+f3_2a1a1+"&f3_2a1a2="+f3_2a1a2+"&f3_2a1a3="+f3_2a1a3+"&f3_2a1a4="+f3_2a1a4+"&f3_2a1b="+f3_2a1b+"&f3_2a1b1="+f3_2a1b1+"&f3_2a1b2="+f3_2a1b2+"&f3_2a1b3="+f3_2a1b3+"&f3_2a1b4="+f3_2a1b4+"&f3_2a2a1="+f3_2a2a1+"&f3_2a2a2="+f3_2a2a2+"&f3_2a2a3="+f3_2a2a3+"&f3_2a2a4="+f3_2a2a4+"&f3_2a2b1="+f3_2a2b1+"&f3_2a2b2="+f3_2a2b2+"&f3_2a2b3="+f3_2a2b3+"&f3_2a2b4="+f3_2a2b4+"&f3_2a31="+f3_2a31+"&f3_2a32="+f3_2a32+"&f3_2a33="+f3_2a33+"&f3_2a34="+f3_2a34+"&f3_2a41="+f3_2a41+"&f3_2a42="+f3_2a42+"&f3_2a43="+f3_2a43+"&f3_2a44="+f3_2a44+"&f3_2a51="+f3_2a51+"&f3_2a52="+f3_2a52+"&f3_2a53="+f3_2a53+"&f3_2a54="+f3_2a54+"&f3_2a61="+f3_2a61+"&f3_2a62="+f3_2a62+"&f3_2a63="+f3_2a63+"&f3_2a64="+f3_2a64+"&f3_2a71="+f3_2a71+"&f3_2a72="+f3_2a72+"&f3_2a73="+f3_2a73+"&f3_2a74="+f3_2a74+"&f3_2a81="+f3_2a81+"&f3_2a82="+f3_2a82+"&f3_2a83="+f3_2a83+"&f3_2a84="+f3_2a84+"&f3_2a91="+f3_2a91+"&f3_2a92="+f3_2a92+"&f3_2a93="+f3_2a93+"&f3_2a94="+f3_2a94+"&f3_2b1a1="+f3_2b1a1+"&f3_2b1a2="+f3_2b1a2+"&f3_2b1a3="+f3_2b1a3+"&f3_2b1a4="+f3_2b1a4+"&f3_2b1b1="+f3_2b1b1+"&f3_2b1b2="+f3_2b1b2+"&f3_2b1b3="+f3_2b1b3+"&f3_2b1b4="+f3_2b1b4+"&f3_2b21="+f3_2b21+"&f3_2b22="+f3_2b22+"&f3_2b23="+f3_2b23+"&f3_2b24="+f3_2b24+"&f3_2b31="+f3_2b31+"&f3_2b32="+f3_2b32+"&f3_2b33="+f3_2b33+"&f3_2b34="+f3_2b34+"&f3_2b41="+f3_2b41+"&f3_2b42="+f3_2b42+"&f3_2b43="+f3_2b43+"&f3_2b44="+f3_2b44+"&f3_2b51="+f3_2b51+"&f3_2b52="+f3_2b52+"&f3_2b53="+f3_2b53+"&f3_2b54="+f3_2b54+"&f3_2b61="+f3_2b61+"&f3_2b62="+f3_2b62+"&f3_2b63="+f3_2b63+"&f3_2b64="+f3_2b64+"&f3_3="+f3_3+"&f3_4="+f3_4+"&f3_5a="+f3_5a+"&f3_5b="+f3_5b+"&f3_5c="+f3_5c+"&f3_5d="+f3_5d+"&f4_1="+f4_1+"&f4_2a="+f4_2a+"&f4_2b="+f4_2b+"&f4_3="+f4_3+"&f4_4="+f4_4+"&f4_5="+f4_5+"&f4_6="+f4_6+"&f4_7="+f4_7+"&f4_8="+f4_8+"&f4_9="+f4_9+"&f4_10a="+f4_10a+"&f4_10b="+f4_10b+"&f4_11a="+f4_11a+"&f4_11b="+f4_11b+"&f4_11c="+f4_11c+"&f4_11d="+f4_11d+"&f4_12a="+f4_12a+"&f4_12b="+f4_12b+"&f4_12c="+f4_12c+"&f4_12d="+f4_12d+"&f4_13a="+f4_13a+"&f4_13b="+f4_13b+"&f4_13c="+f4_13c+"&f4_13d="+f4_13d+"&f4_13e="+f4_13e+"&f4_13f="+f4_13f+"&f4_13g="+f4_13g+"&f4_13h="+f4_13h+"&f4_13i="+f4_13i+"&f4_13j="+f4_13j+"&f4_14="+f4_14+"&f4_15a="+f4_15a+"&f4_15b="+f4_15b+"&f4_15c="+f4_15c+"&f4_15d="+f4_15d+"&f4_15e="+f4_15e+"&f4_15f="+f4_15f+"&f4_15g="+f4_15g+"&f4_15h="+f4_15h+"&f4_15i="+f4_15i+"&f4_15j="+f4_15j+"&f4_16="+f4_16+"&f5_1="+f5_1+"&f5_2="+f5_2+"&f5_3="+f5_3+"&f5_4="+f5_4+"&f5_5a="+f5_5a+"&f5_5b="+f5_5b+"&f5_5c="+f5_5c+"&f5_5d="+f5_5d+"&f5_6="+f5_6+"&f5_7a="+f5_7a+"&f5_7b="+f5_7b+"&f5_8="+f5_8+"&f5_9a="+f5_9a+"&f5_9b="+f5_9b+"&f5_9c="+f5_9c+"&f5_9d="+f5_9d+"&f5_10="+f5_10+"&f5_11="+f5_11+"&f5_12="+f5_12+"&f5_13a="+f5_13a+"&f5_13b="+f5_13b+"&f5_13c="+f5_13c+"&f5_13d="+f5_13d+"&f5_13e="+f5_13e+"&f5_13f="+f5_13f+"&f5_13g="+f5_13g+"&f6_1a="+f6_1a+"&f6_1b="+f6_1b+"&f6_2a="+f6_2a+"&f6_2b="+f6_2b+"&f6_3a="+f6_3a+"&f6_3b="+f6_3b+"&f6_4a="+f6_4a+"&f6_4b="+f6_4b+"&f6_5="+f6_5+"&f6_6="+f6_6+"&f6_7a1="+f6_7a1+"&f6_7a2="+f6_7a2+"&f6_7a3="+f6_7a3+"&f6_7b1="+f6_7b1+"&f6_7b2="+f6_7b2+"&f6_7b3="+f6_7b3+"&f6_7c1="+f6_7c1+"&f6_7c2="+f6_7c2+"&f6_7c3="+f6_7c3+"&f6_8="+f6_8+"&f6_91a1="+f6_91a1+"&f6_91a2="+f6_91a2+"&f6_91a3="+f6_91a3+"&f6_91b1="+f6_91b1+"&f6_91b2="+f6_91b2+"&f6_91b3="+f6_91b3+"&f6_91c1="+f6_91c1+"&f6_91c2="+f6_91c2+"&f6_91c3="+f6_91c3+"&f6_921="+f6_921+"&f6_922="+f6_922+"&f6_923="+f6_923+"&f6_931="+f6_931+"&f6_932="+f6_932+"&f6_933="+f6_933+"&f7_1="+f7_1+"&f7_2a="+f7_2a+"&f7_2b="+f7_2b+"&f7_3a="+f7_3a+"&f7_3b="+f7_3b+"&f7_3c="+f7_3c+"&f7_3d="+f7_3d+"&f7_3e="+f7_3e+"&f7_3f="+f7_3f+"&f8_1="+f8_1+"&f8_2="+f8_2+"&f8_3="+f8_3+"&f8_4="+f8_4+"&f8_5="+f8_5+"&f8_6="+f8_6+"&f8_7="+"none"+"&f8_8="+"none";
				url=url.replace("+", "%2B");
				url=url.replace(" ", "%20");
				System.out.println(url);
			}
		}

		@Override
		protected Object doInBackground(Object... params) {
			
			try 
			{
				json=JSONfunctions.getStringContent(url);
				jsonobject=new JSONObject(json);
				code=jsonobject.getString("code");
				msg=jsonobject.getString("msg");
			} 
			catch (Exception e) 
			{
				e.printStackTrace();
			}
			return null;
		}
		@Override
		protected void onPostExecute(Object result)
		{
			super.onPostExecute(result);
			if(code.equalsIgnoreCase("1"))
			{
				dering.openToWrite();
				int ii=dering.delete(dering_array[0]);
				dering.close();
	          	System.out.println(ii);
				handler=new Handler(callback);
	            handler.postDelayed(r,10000);
			}
			else
			{
				handler=new Handler(callback);
	             handler.postDelayed(r,10000);
				Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();
			}
		}

	}
}
